<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:80:"E:\andiffcrm\fastadmin20180314\public/../application/admin\view\module\edit.html";i:1521112197;s:73:"E:\andiffcrm\fastadmin20180314\application\admin\view\layout\default.html";i:1521019243;s:70:"E:\andiffcrm\fastadmin20180314\application\admin\view\common\meta.html";i:1521019243;s:72:"E:\andiffcrm\fastadmin20180314\application\admin\view\common\script.html";i:1521019243;}*/ ?>
<!DOCTYPE html>
<html lang="<?php echo $config['language']; ?>">
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>
    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">中文名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="<?php echo $row['name']; ?>" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-enname" class="control-label col-xs-12 col-sm-2">英文名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-enname" data-rule="required" class="form-control" name="row[enname]" type="text" value="<?php echo $row['enname']; ?>" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-dir" class="control-label col-xs-12 col-sm-2">目录:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dir" data-rule="" class="form-control" name="row[dir]" type="text" value="<?php echo $row['dir']; ?>" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-parentList" class="control-label col-xs-12 col-sm-2">上级模型:</label>
        <div class="col-xs-12 col-sm-8">
          <select id="c-parentList" data-rule="" class="form-control selectpicker" name="row[pid]">
              <option value="0">请选择</option>
              <?php if(is_array($parentList) || $parentList instanceof \think\Collection || $parentList instanceof \think\Paginator): $k = 0; $__LIST__ = $parentList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;if($vo['pid'] == 0): ?>
                  <option value="<?php echo $vo['itemid']; ?>" <?php if($vo['itemid'] == $row['pid']): ?>selected="selected"<?php endif; ?>><?php echo $vo['name']; ?></option>
                  <?php endif; endforeach; endif; else: echo "" ;endif; ?>
          </select>
        </div>
    </div>

    <div class="form-group">
        <label for="c-catid" class="control-label col-xs-12 col-sm-2">类别:</label>
        <div class="col-xs-12 col-sm-8 line3">
            <div id="jscategoryselect22" class="selects3" data-pid="0">
                <a class="arrow"><img alt="arrowbottom" src="http://qd.andiff.net/netimages/arrow_bottom.png" /></a>
                <span class='selected3'><?php echo $row['category']['name']; ?></span>
                <input type="hidden" id="catid" name="row[catid]" value="<?php echo $row['catid']; ?>" />
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-intro" class="control-label col-xs-12 col-sm-2">简介:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[intro]" id="c-intro" cols="60" rows="5" class="form-control summernote"><?php echo $row['intro']; ?></textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8 text-center">

            <button type="button" class="btn btn-primary" id="msql">生成数据表</button>&nbsp;
            <button type="button" class="btn btn-primary" id="mcc">生成列缓存</button>&nbsp;
            <button type="button" class="btn btn-primary" id="mcm">生成Model</button>
            <button type="button" class="btn btn-primary" id="mccon">生成Controller</button>
            <button type="button" class="btn btn-primary" id="mbt">生成编辑模板</button>&nbsp;
            <button type="button" class="btn btn-primary" id="mlt">生成列表模板</button>&nbsp;
            <button type="button" class="btn btn-primary" id="mjs">生成脚本</button>&nbsp;
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8 text-center">
            <button type="submit" class="btn btn-success btn-embossed"><?php echo __('OK'); ?></button>
            <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
            <button type="button" class="btn btn-default returnback">返回</button>
            <button type="button" class="btn btn-default" id="mopen">开启</button>
            <button type="button" class="btn btn-default" id="mclose">关闭</button>
        </div>
    </div>
</form>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo $site['version']; ?>"></script>
    </body>
</html>